package be.ipl.ieco.util;


public final class Util {
	public static boolean checkObject(Object o) {
		if (o == null)
			return false;
		return true;
	}
	
	public static boolean checkString(String s) {
		
		if (checkObject(s) && !s.trim().equals(""))
			return true;
		return false;
	}
	public static boolean checkNegativeOrZero(double d) {
		if (d > 0.0)
			return false;
		return true;
	}
	public static boolean checkPositiveOrZero(double d) {
		if (d < 0)
			return false;
		return true;
	}
	public static boolean checkPositive(double d) {
		if (d<=0.00001)
			return false;
		return true;
	}
	
	public static boolean checkPositive(int i) {
		if (i<=0)
			return false;
		return true;
	}
}
